package com.ymttest.database.mapping.agentrebate;

import com.ymttest.database.model.agentrebate.Ymt_ProductSelectionCondition;
import com.ymttest.database.model.agentrebate.Ymt_ProductSelectionConditionExample;
import java.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.type.JdbcType;

public interface Ymt_ProductSelectionConditionMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_ProductSelectionCondition
     *
     * @mbggenerated Wed Jul 01 14:18:14 CST 2020
     */
    @Insert({
        "insert into Ymt_ProductSelectionCondition (Id, UserId, ",
        "BrandIdList, FirstCategoryIdList, ",
        "DepotIdList, Action, ",
        "CreateTime, UpdateTime, ",
        "AgentId)",
        "values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, ",
        "#{brandIdList,jdbcType=VARCHAR}, #{firstCategoryIdList,jdbcType=VARCHAR}, ",
        "#{depotIdList,jdbcType=VARCHAR}, #{action,jdbcType=INTEGER}, ",
        "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ",
        "#{agentId,jdbcType=INTEGER})"
    })
    int insert(Ymt_ProductSelectionCondition record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_ProductSelectionCondition
     *
     * @mbggenerated Wed Jul 01 14:18:14 CST 2020
     */
    @InsertProvider(type=Ymt_ProductSelectionConditionSqlProvider.class, method="insertSelective")
    int insertSelective(Ymt_ProductSelectionCondition record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table Ymt_ProductSelectionCondition
     *
     * @mbggenerated Wed Jul 01 14:18:14 CST 2020
     */
    @SelectProvider(type=Ymt_ProductSelectionConditionSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="Id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="UserId", property="userId", jdbcType=JdbcType.INTEGER),
        @Result(column="BrandIdList", property="brandIdList", jdbcType=JdbcType.VARCHAR),
        @Result(column="FirstCategoryIdList", property="firstCategoryIdList", jdbcType=JdbcType.VARCHAR),
        @Result(column="DepotIdList", property="depotIdList", jdbcType=JdbcType.VARCHAR),
        @Result(column="Action", property="action", jdbcType=JdbcType.INTEGER),
        @Result(column="CreateTime", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="UpdateTime", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="AgentId", property="agentId", jdbcType=JdbcType.INTEGER)
    })
    List<Ymt_ProductSelectionCondition> selectByExample(Ymt_ProductSelectionConditionExample example);
}